package com.tj.bo.user.client;

import com.tj.bo.user.client.enums.UserRegisterTypeEnum;
import com.tj.bo.user.client.vo.output.UserAccessInfoRO;

/**
 * Created with IntelliJ IDEA.
 * User: binary
 * Date: 2020/6/9
 * Time: 下午5:05
 */
public interface UserCheckService {

    /**
     * 检查token是否有效
     *
     * @param realToken
     * @return
     */
    boolean checkByRealToken(String realToken);

    /**
     * 检查设备号是否已注册
     *
     * @param appCode
     * @param deviceId
     * @return
     */
    boolean isDeviceRegistered(String appCode, String deviceId);

    boolean isSocialRegistered(String appCode, UserRegisterTypeEnum registerType, String openId);

    boolean isEmailRegistered(String appCode, String email);

    UserAccessInfoRO getUserAccessByEmail(String appCode, String email);

    UserAccessInfoRO getUserAccessByMobile(String appCode, String mobile);

}
